@section("header")
    <link rel="stylesheet" href="{{asset(env('CDN_HOST').'/public/css/home/header.css')}}">
    <nav id="header" class="header">
        <div class="header-top">
            <span class="header-logo">
                {{env('WEB_NAME')}}
            </span>
            <span class="header-search">
                <i class="fa fa-search"></i>
                &ensp;
                搜索商品, 共9569款好物
            </span>
        </div>
        <div class="header-wp">
            <nav class="hots-bar">
                <div class="hots-wp">
                    {{--<a class="hot hot-all active">仿制</a>--}}
                    <div class="hots-cnt">
                        <div class="clearfix hots-bd">
                            <a href="/home/index" class="hot hot-active">推荐</a>
                            @foreach($classify as $key => $value)
                                <a href="/classify/{{$value['commodity_classify_id']}}" class="hot hot-true"
                                   data-id="{{$value['commodity_classify_id']}}">{{$value['classify_name']}}</a>
                            @endforeach
                            @foreach($classify as $key => $value)
                                <a href="/classify/{{$value['commodity_classify_id']}}" class="hot hot-true"
                                   data-id="{{$value['commodity_classify_id']}}">{{$value['classify_name']}}</a>
                            @endforeach
                            @foreach($classify as $key => $value)
                                <a href="/classify/{{$value['commodity_classify_id']}}" class="hot hot-true"
                                   data-id="{{$value['commodity_classify_id']}}">{{$value['classify_name']}}</a>
                            @endforeach
                        </div>
                    </div>
                    {{--<a class="hot hot-more hot-more-open" href="javascript:;"></a>--}}
                </div>
            </nav>
        </div>
    </nav>
    <script>
        $(".hot").on('click', function () {
            $(".hot").attr("class", "hot")
            $(this).attr("class", "hot hot-active")
        })
        $(".header-search").click(function () {
            window.location.href = '/search'
        })
    </script>
    <div class="brace-header"></div>
@endsection